<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <light/>
    <el-button id="pribtn" type="primary" @click="handleClick">主要按钮</el-button>
  </div>
</template>

<script>
import $ from 'jquery'
import Light from '@/components/Light'
export default {
  name: 'HelloWorld',
  components:{Light},
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods:{
    handleClick:function(){
      $("#pribtn").text("改变内容");
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
